package pt.mauromad.guias.service;

import java.util.List;

import org.springframework.stereotype.Service;

import pt.mauromad.guias.dao.AccountDao;
import pt.mauromad.guias.dao.ProductDao;

@Service
public class ProductService extends DaoService<ProductDao, Long> {
	public ProductService() {
		super(ProductDao.class);
	}

	public List<ProductDao> byAccount(AccountDao account) {
		return list("where account_id =:0", account.getId());
	}
}
